﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.DictComponent
{
    public interface IRedisDictCacheService
    {
        Task<WmsDictType> GetDictTypeAsync(string code);
        Task<List<WmsDictData>> GetDictDataListAsync(long typeId);

        // 缓存写入
        Task SetDictTypeAsync(WmsDictType dictType);
        Task SetDictDataListAsync(long typeId, List<WmsDictData> dictDataList);

        // 缓存清除
        Task ClearDictTypeCacheAsync(string code);
        Task ClearDictDataCacheAsync(long typeId);
    }
}
